const userHandle = (req, res) => {
  const method = req.method
  const url = req.url
  const path = url.split('?')[0]
  res.setHeader('Content-Type', 'application/json')
  if (method === 'POST' && path === '/api/user/login') {
    // 处理获取博客列表的逻辑
    res.end(JSON.stringify({ msg: '用户登录接口' }))
    return true
  }
  res.end(JSON.stringify({ msg: '404 Not Found' }))
  return false
}

module.exports = userHandle
